<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>预约借款状态</title>
    <link rel="stylesheet" href="/Public/admin/css/gxxj/public_O.css">
    <style type="text/css">
        html {
            background: #fff;
            height: 100%;
        }
    </style>
</head>
<body style="padding:10px;">

<div>
    <table class="search_table" style="width: 100%">
        <tr>
            <th>交易时间</th>
            <th>交易名称</th>
            <th>交易伙伴</th>
            <th>交易金额</th>
            <th>交易状态</th>
            <th>创建时间</th>

        </tr>
        <volist name="data" id="vo">
            <tr>
                <td><{$vo.repayment_no}></td>
                <td><{$vo.orderno}></td>
                <td><{$vo.money}></td>
                <!--<td><{$vo.re_money}></td>-->
                <td><{$vo.changetime}>天</td>
                <td><{$vo.type}></td>
                <td><{$vo.ctime}></td>
                <td><{$vo.status_s}></td>
                <if condition="($vo.status eq '2')">
                    <td>
                        <a>  <span class="bg_color_green color_white table_span" style="font-size: small "
                              onclick="cancel_renew('<{$vo.orderno}>')">取消续借</span></a>
                    </td>
                    <elseif condition="($vo.status eq '7')"/>
                    <td>
                      <a> <span class="bg_color_green color_white table_span" style="font-size: small "
                              onclick="cancel_renew('<{$vo.orderno}>')"><{$vo.check}></span></a>
                    </td>
                    <else/>
                    <td>
                        <span class="bg_color_green color_white table_span"
                              style="font-size: small; background-color: #7F7F7F "><{$vo.check}></span>
                    </td>
                </if>
            </tr>
        </volist>
    </table>
</div>

<script type="text/javascript" src="/Public/admin/js/jquery.min.js"></script>

<script src="/Public/admin/js/layer/layer.js"></script>
<script src="/Public/admin/js/layui/layui.js"></script>

<script>

    function cancel_renew(orderno) {
        var vid = "<{$vid}>";
        layer.open({
            title: '取消续借理由',
            type: 2,
            area: ['80%', '80%'],
            maxmin: true,
            offset: '100px',
            content: '<{$SRVER_NAME}>/admin.php/UserInfo/renew_cancel_reson.html?orderno=' + orderno + '&vid=' + vid,
            success: function (layero) {
                layero.find('.layui-layer-min').remove();
            }
        });

    }
</script>


</body>
</html>